package cn.tedu.tmall.admin.content.dao.repository;

import cn.tedu.tmall.admin.content.pojo.po.ArticleDetailPO;
import cn.tedu.tmall.admin.content.pojo.po.ArticlePO;
import cn.tedu.tmall.common.pojo.PageData;

import java.util.List;

public interface IArticleRepository {
    Integer countArticleByTitle(String title);

    Integer saveArticle(ArticlePO articlePO);

    Integer saveArticleDetail(ArticleDetailPO articleDetailPO);

    PageData<ArticlePO> listArticle(Long categoryId, Integer pageNum, Integer pageSize);

    ArticleDetailPO detail(Long articleId);

    ArticlePO basic(Long articleId);
}
